import { _decorator, Component, Label, log, Node } from 'cc';
import { DialogViewID } from '../../../components/DialogViewID';
import { HttpDataBase } from '../../../network/http/HttpDataBase';
import { DialogViewBase } from '../../base/DialogViewBase';
import { LanguageEnum, LanguageMgr } from '../../../components/language/LanguageMgr';
const { ccclass, property } = _decorator;

@ccclass('BagDialogView')
export class BagDialogView extends DialogViewBase {
    protected _dialogViewID:DialogViewID = DialogViewID.bag;
    start() {
    }
    private onGetUserInfo(data:HttpDataBase):void{
        if(data.isSuccessful)
        {
            console.log("请求成功");
        }else{
            console.log("请求失败");
        }
    }
    protected init(data?: any): void {
        this.node.getChildByPath("content/test").getComponent(Label).string = data;
    }
    private click():void{
        this.close();
    }
}


